package org.jeecg.modules.yks.bas.entity;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.UnsupportedEncodingException;

/**
 * @Description: 单位表
 * @Author: jeecg-boot
 * @Date:   2023-11-16
 * @Version: V1.0
 */
@Data
@TableName("yks_unit")
@ApiModel(value="yks_unit对象", description="单位表")
public class YksUnit implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private java.lang.String name;
	/**符号*/
	@Excel(name = "符号", width = 15)
    @ApiModelProperty(value = "符号")
    private java.lang.String symbol;
	/**是否基准*/
	@Excel(name = "是否基准", width = 15)
    @ApiModelProperty(value = "是否基准")
    private java.lang.String hasChild;
	/**基准单位*/
	@Excel(name = "基准单位", width = 15)
    @ApiModelProperty(value = "基准单位")
    private java.lang.String pid;
	/**单位类型*/
	@Excel(name = "单位类型", width = 15, dicCode = "unit_type")
	@Dict(dicCode = "unit_type")
    @ApiModelProperty(value = "单位类型")
    private java.lang.String unitType;
	/**是否启用*/
	@Excel(name = "是否启用", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否启用")
    private java.lang.Integer isEnabled;
	/**换算系数*/
	@Excel(name = "换算系数", width = 15)
    @ApiModelProperty(value = "换算系数")
    private java.math.BigDecimal factor;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**多租户标识*/
	@Excel(name = "多租户标识", width = 15)
    @ApiModelProperty(value = "多租户标识")
    private java.lang.String tenantId;
	/**删除状态*/
	@Excel(name = "删除状态", width = 15)
    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private java.lang.Integer delFlag;
	/**版本*/
	@Excel(name = "版本", width = 15)
    @ApiModelProperty(value = "版本")
    private java.lang.Integer version;
	/**租户业务隔离ID*/
	@Excel(name = "租户业务隔离ID", width = 15)
    @ApiModelProperty(value = "租户业务隔离ID")
    private java.lang.String tenantBusinessId;
}
